package com.the_ring.behavior.visitor;

/**
 * @author: t22306139
 * @date: 2023/12/1  15:18
 */
public class MainTest {

    public static void main(String[] args) {
        ElementSet es = new ElementSet();
        es.add(new Paper());
        es.add(new Copper());

        Visitor artVisitor = new ArtVisitor();
        System.out.println(artVisitor.getClass().getSimpleName() + " " + es.accept(artVisitor));

        System.out.println("=================================");

        Visitor mintVisitor = new MintVisitor();
        System.out.println(mintVisitor.getClass().getSimpleName() + " " + es.accept(mintVisitor));
    }
}
